package com.m.common;


import com.m.enums.WebReturnCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ReturnCode {

    private Integer code;

    private String msg;

    private Object data;

    public ReturnCode(WebReturnCode rt, String msg, Object object) {
        this.code = rt.getValue();
        this.msg = msg;
        this.data = object;
    }

    public ReturnCode(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ReturnCode() {
    }
}
